package com.naiterui.ehp.bs.emr.service;

import com.naiterui.common.repository.page.PageParamVO;
import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.emr.vo.MedicalRecordTemplateDetailVO;
import com.naiterui.ehp.bs.emr.vo.MedicalRecordTemplateVO;

/**
 * 病历模板
 * 
 * @author yangfuya
 * @since 2022/4/11
 */
public interface IMedicalRecordTemplateService {
    /**
     * 获取医生病历模板列表
     * 
     * @param doctorId
     *            医生ID
     * @param pageParamVO
     * @return
     * @throws BusinessException
     */
    PageVO<MedicalRecordTemplateVO> findByDoctorId(Long doctorId, PageParamVO pageParamVO) throws BusinessException;

    /**
     * 保存病历模板
     * 
     * @param doctorId
     * @param vo
     * @throws BusinessException
     */
    void save(Long doctorId, MedicalRecordTemplateDetailVO vo) throws BusinessException;

    /**
     * 病例模板详情
     * 
     * @param id
     * @param doctorId
     * @return
     * @throws BusinessException
     */
    MedicalRecordTemplateDetailVO findById(String id, Long doctorId) throws BusinessException;

}
